package com.rollway.restful.processor;

import com.rollway.restful.MethodMetadata;

public interface AnnotatedParameterContext {


    MethodMetadata getMethodMetadata();

    int getParameterIndex();


    public static class SimpleAnnotatedParameterContext implements AnnotatedParameterContext {

        private final MethodMetadata methodMetadata;

        private final int parameterIndex;

        public SimpleAnnotatedParameterContext(MethodMetadata methodMetadata, int parameterIndex) {
            this.methodMetadata = methodMetadata;
            this.parameterIndex = parameterIndex;
        }

        public MethodMetadata getMethodMetadata() {
            return methodMetadata;
        }

        public int getParameterIndex() {
            return parameterIndex;
        }

    }
}

